package cn.lnl.springcloud.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author LNL
 * @date 2021/8/29 15:24
 */
@Component
@FeignClient(value = "CLOUD-PROVIDER-HYSTIX-PAYMENT",fallback = PaymentFallbackService.class)
public interface PaymentHystrixService {

    @GetMapping("/payment/hystrix/timeout/{id}")
    public String paymentInfo_timeOut (@PathVariable("id") Integer id) ;

    @GetMapping("/payment/hystrix/ok/{id}")
    public String paymentInfo_Ok (@PathVariable("id") Integer id) ;

}
